package org.xjtu;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {"org.xjtu"})
public class MainStarter {

	public static void main(String[] args)   {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainStarter.class);
		Car car =  context.getBean("car", Car.class);
		System.out.println(car.getTank());
	}
}
